<template>
	<view class="orderPage">
		<view class="row" v-for="(item,index) in 5" @click="goDetail(item)">
			<view class="head">
				<view class="number">编号<text class="way">商家外送</text></view>
				<view class="state">
					<u-icon name="weixin-fill" size="22" color="#04c15f"></u-icon>
					<text>已支付</text>
				</view>
			</view>
			<view class="body">
				卫龙大面筋
			</view>
			<view class="footer">
				<view class="time">2023-06-10 18:20</view>
				<view class="count">
					共2件商品，实付<text class="price">￥33.3</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		methods:{
			// 跳转到详情页
			goDetail(value){
				uni.navigateTo({
					url:"/pages/order/detail?item="+value
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	page{ background: $page-bg-color;}
	.orderPage{ padding: 30rpx;
		.row{
			background: #fff;
			padding: 40rpx 20rpx;
			border-radius: 20rpx;
			margin-bottom: 30rpx;
			.head{
				@include flex-box();
				font-size: 32rpx;
				.number{
					@include flex-box-set(start);
					.way{
						background: #19be6b;
						color: #fff;
						font-size: 30rpx;
						padding: 6rpx 20rpx;
						border-radius: 30rpx;
						margin-left: 10rpx;
						
					}
				}
				.state{
					
					@include flex-box-set(start);
					color: $brand-theme-color-aux;
				}
			}
			.body{
				border: 1px solid $border-color;
				padding: 60rpx 20rpx;
				border-radius: 10rpx;
				background: #f9f9f9;
				font-size: 34rpx;
				margin: 30rpx 0;
			}
			.footer{
				@include flex-box();
				font-size: 26rpx;
				color: #999;
				.price{
					font-weight: bold;
					color: #000;
				}
			}
		}
	}
</style>
